//
//  OrderAPI.h
//  RainbowFM
//
//  Created by chenli on 14/12/29.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface OrderAPI : NSObject

-(void)createOrderWithUserID:(NSString *)userId ProdID:(NSString *)prodId prodPrice:(NSString *)prodPrice_ prodName:(NSString *)prodName prodImg:(NSString *)prodImage prodNum:(NSString *)prodNum buyerName:(NSString *)buyerName_ buyerPhone:(NSString *)phone buyerAddr:(NSString *)address result:(void(^)(NSString *orderId))res;


-(void)fetchUserOrderListWithUserID:(NSString *)userId orderStatus:(NSString *)status cancel:(NSString *)cancel_ merchantID:(NSString *)merchantId pageSize:(NSString *)count currentPage:(NSString *)start result:(void(^)(NSArray *array,NSString *msg))res;


-(void)fetchOrderDetailWithUserID:(NSString *)userId orderID:(NSString *)orderId result:(void(^)(NSDictionary *dict,NSString *msg))res;


-(void)cancelOrderWithUserID:(NSString *)userId orderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

-(void)orderRemindWithUserID:(NSString *)userId orderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

//确认收货
-(void)receiptOrderWithUserID:(NSString *)userId orderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

//延迟收货
-(void)delayOrderWithUserID:(NSString *)userId orderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

//退款
-(void)refundOrderWithUserID:(NSString *)userId orderID:(NSString *)orderId desc:(NSString *)des result:(void(^)(BOOL success,NSString *msg))res;


-(void)returnOrderWithUserID:(NSString *)userId orderID:(NSString *)orderId logisName:(NSString *)logisName_ logisNum:(NSString *)logisNum result:(void(^)(BOOL success,NSString *msg))res;


-(void)confirmRefundOrderWithUserID:(NSString *)userId orderID:(NSString *)orderId desc:(NSString *)des result:(void(^)(BOOL success,NSString *msg))res;


-(void)payTypeListWithUserID:(NSString *)userId orderID:(NSString *)orderId result:(void(^)(NSArray *array,NSString *msg))res;

-(void)paymentWithUserID:(NSString *)userId orderID:(NSString *)orderId payType:(NSString *)type result:(void(^)(NSString *payURL,NSString *msg))res;
@end
